package cuid.sc20.laboratory.domain;

import cuid.sc20.laboratory.annotation.Excel;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;


/**
 * 角色权限对照对象 tb_role_permission
 *
 * @author ruoyi
 * @date 2023-06-30
 */
public class TbRolePermission extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 角色和权限对应表主键 */
    private Long id;

    /** 角色id */
    @Excel(name = "角色id")
    private Long roleId;

    /** 权限id */
    @Excel(name = "权限id")
    private Long permId;

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId()
    {
        return id;
    }
    public void setRoleId(Long roleId)
    {
        this.roleId = roleId;
    }

    public Long getRoleId()
    {
        return roleId;
    }
    public void setPermId(Long permId)
    {
        this.permId = permId;
    }

    public Long getPermId()
    {
        return permId;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("roleId", getRoleId())
            .append("permId", getPermId())
            .toString();
    }
}
